//
//  PlaceDetailsViewControllers.m
//  GuideMe
//
//  Created by Amila Fonseka on 3/25/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "PlaceDetailsViewControllers.h"

@implementation PlaceDetailsViewControllers

@synthesize strPlaceID, strPlaceTitle;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}


- (IBAction)btnBackTapped
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (IBAction)btnContactPlaceTapped
{
    
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    lblPlaceName.text = [NSString stringWithFormat:@"%@", strPlaceTitle];
    
    if ([strPlaceID isEqualToString:@"1"])
    {
        txtPlaceDesciption.text = @"Galle-located 116 km to the south of Colombo on the southwest corner of the island-was founded in the 16th century by the Portuguese. It is the best example of a fortified city built by Europeans in South and South-East Asia, showing the interaction between European architectural styles and South Asian traditions. Galle has been declared a World Heritage City by the UNESCO";
    }
    else if ([strPlaceID isEqualToString:@"2"])
    {
        txtPlaceDesciption.text = @"Galle Fort, in the Bay of Galle on the south east coast of Sri Lanka, was built first in 1588 by the Portuguese, then extensively fortified by the Dutch during the 17th century from 1649 onwards. It is a historical, archaeological and architectural heritage monument, which even after more than 423 years maintains a polished appearance, due to extensive reconstruction work done by Archaeological Department of Sri Lanka.The fort has a colourful history, and today has a multi-ethnic and multi-religious population. The Sri Lankan government and many Dutch people who still own some of the properties inside the fort are looking at making this one of the modern wonders of the world. The heritage value of the fort has been recognized by the UNESCO and the site has been inscribed as a cultural heritage UNESCO World Heritage Site under criteria iv, for its unique exposition of \"an urban ensemble which illustrates the interaction of European architecture and South Asian traditions from the 16th to the 19th centuries.\"The Galle Fort, also known as the Dutch Fort or the \"Ramparts of Galle\", withstood the Boxing Day tsunami which damaged part of coastal area Galle town. It has been since restored. The Galle Fort also houses the elite Amangalla resort hotel, located near the Dutch Reformed Church. It was originally built in 1684 to house the Dutch Governor and his staff. It was then converted into a hotel and named then as the New Oriental Hotel in 1865, which catered to the European passengers traveling between Europe and Galle Port in the 19th century.";
    }
    else if ([strPlaceID isEqualToString:@"3"])
    {
        txtPlaceDesciption.text = @"Unawatuna is rich in its biodiversity. Many locals believe it to have been cursed for being built at the doorstep of the Wella Devalaya. Over sixty species of endemic birds, including Terns, Egrets, Herons, Sandpipers, Kingfishers, as well as rarer species such as the Lesser Whistling Duck, the Asian Palm Swift, the White Breasted Waterhen, the Turnstone Loten's Sunbird, and the Black Bittern have been sighted in the locality by the ornithologist, Clive Byers. These birds are mostly sighted in the remaining marshy area and Rumassala Hillock. Off the coast of Unawatuna, beneath the Indian Ocean lies a number of coral reefs, shipwrecks, and a great variety of fish and turtles. The turtles still wade onto the shore to lay their nests and eggs, and at times, as if to lay first claim to the sandy shore now invaded by the tourists and dotted by restaurateurs, even go right into the beach front restaurants. The Rumassala coral reefs at the east end of the Galle Harbor attract divers, but are now endangered due to possible port development. Eco treks in the shrub jungles of Rumassala are also available.";
    }
    else if ([strPlaceID isEqualToString:@"4"])
    {
        txtPlaceDesciption.text = @"Koggala, near Galle is the hometown of a famous local writer Martin Wickramasinghe. The museum of Folk, Art & Culture built in his honour at his old residence has an excellent display of local folk items. They include the costumes of folk dancers, sports items, household items and furniture and vast arena of the folk life of the early 20th century. Take a boat trip in the lagoon and Kogggala Lake to see many of its small islands, which is a popular destination for bird watching.";
    }
    else if ([strPlaceID isEqualToString:@"5"])
    {
        txtPlaceDesciption.text = @"The house in which Martin Wickramasinghe was born has inspired the Martin Wickramasinghe Trust to established a Folk Museum Complex, surrounded by a restored ecosystem planted with hundreds of varieties of indigenous trees and shrubs in which bird life abounds. The house and the surroundings brings to life a little part of the Koggala which is so vividly depicted in Wickramasinghe’s writings.";
    }
    else if ([strPlaceID isEqualToString:@"6"])
    {
        txtPlaceDesciption.text = @"Home to a unique type of fishing technique. Silt fishing is a popular fishing method in the area and a very beautiful scenery to watch especially during sunset. Ahangama is also a popular surfing location.";
    }
    else if ([strPlaceID isEqualToString:@"7"])
    {
        txtPlaceDesciption.text = @"Southern most major town in Sri Lanka and the terminus of the coastal rail line, Matara is located at a distance of 160 km from Sri Lanka. The Nilwala River, which is the lifeline of the region, runs through the town. Matara is famous for its natural beauty-white sandy beaches, lush paddy fields, verdant tea estates, and fragrant spice plantations. The town was earlier under the Portugese and Dutch rule.";
    }
    else if ([strPlaceID isEqualToString:@"8"])
    {
        txtPlaceDesciption.text = @"Built by the Dutch around 1640, Matara Fort is a fortification of a Portuguese garrison. The old Dutch church is one of the oldest structures in the Fort. There are many other structures of the Dutch and the British era most of which have undergone many changes. The star fort built in a shape of a star was built to provide additional protection to the main fort across the river.";
    }
    else if ([strPlaceID isEqualToString:@"9"])
    {
        txtPlaceDesciption.text = @"Dondra or Devinuwara 6 km east of Matara is the southern most point of Sri Lanka. A 40m high lighthouse was built in 1890 to provide guidance to the shipping route south of Sri Lanka. The shrine dedicated to Hindu god Vishnu at Devinuwara is a popular local attraction. The annual festival held in July / August is the major event of the temple.";
    }
    else if ([strPlaceID isEqualToString:@"9"])
    {
        txtPlaceDesciption.text = @"Tangalla, located 48km east of Matara, is one of the most pleasant places in the region for a lazy beach holiday. Facing east, the village center straddles a freshwater lagoon where a small river flows into the sea, with a fishing harbour at its mouth. North of the harbour is the long stretch of white sand known as Medaketiya. To the south, beyond a low headland, is a series of small sandy coves.";
    }
    else
    {
        txtPlaceDesciption.text = @"";
    }
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
